package CreationPattern.AbstractFactory;

/**
 * @Classname : AbstractFactory
 * @Description : 测试抽象工厂模式
 * @Author : chentianyu
 * @Date 2023/1/8 14:49
 */


public class AbstractFactoryClient {

    public static void main(String[] args) {

        System.out.println("测试 抽象工厂模式-高端手机零件产品族");
        PhoneComponentFactory luxuryPhoneComponentFactory = new LuxuryPhoneComponentFactory();
        luxuryPhoneComponentFactory.run();
        System.out.println("--------------------------------------------------------------------");


        System.out.println("测试 抽象工厂模式-低端手机零件产品族");
        PhoneComponentFactory lowPhoneComponentFactory = new LowPhoneComponentFactory();
        lowPhoneComponentFactory.run();
        System.out.println("--------------------------------------------------------------------");
    }
}


/** 20220108
 * 测试 抽象工厂模式-高端手机零件产品族
 * 处理器运行：性能强、频率高
 * 屏幕点亮：色域广、色彩准、最大亮度高
 * --------------------------------------------------------------------
 * 测试 抽象工厂模式-低端手机零件产品族
 * 处理器运行：性能差、频率低
 * 屏幕点亮：色域低、色彩差、最大亮度低
 * --------------------------------------------------------------------
 */
